home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10837 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.1 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6d 63 | 68 68 2e 73 69 65 6d 65 |Path: mc|hh.sieme|
|00000010| 6e 73 2e 64 65 21 6e 65 | 77 73 0a 46 72 6f 6d 3a |ns.de!ne|ws.From:|
|00000020| 20 52 6f 6e 61 6c 64 20 | 46 69 73 63 68 65 72 20 | Ronald |Fischer |
|00000030| 3c 72 6f 6e 61 6c 64 2e | 66 69 73 63 68 65 72 40 |<ronald.|fischer@|
|00000040| 75 65 62 65 6d 63 2e 73 | 69 65 6d 65 6e 73 2e 64 |uebemc.s|iemens.d|
|00000050| 65 3e 0a 4e 65 77 73 67 | 72 6f 75 70 73 3a 20 63 |e>.Newsg|roups: c|
|00000060| 6f 6d 70 2e 6c 61 6e 67 | 2e 63 0a 53 75 62 6a 65 |omp.lang|.c.Subje|
|00000070| 63 74 3a 20 52 65 3a 20 | 43 6f 6d 6d 65 6e 74 73 |ct: Re: |Comments|
|00000080| 20 6f 6e 20 66 75 6e 63 | 74 69 6f 6e 20 72 65 71 | on func|tion req|
|00000090| 75 65 73 74 65 64 0a 44 | 61 74 65 3a 20 32 30 20 |uested.D|ate: 20 |
|000000a0| 4d 61 72 20 31 39 39 36 | 20 31 30 3a 30 33 3a 30 |Mar 1996| 10:03:0|
|000000b0| 36 20 47 4d 54 0a 4f 72 | 67 61 6e 69 7a 61 74 69 |6 GMT.Or|ganizati|
|000000c0| 6f 6e 3a 20 53 69 65 6d | 65 6e 73 20 41 47 2c 28 |on: Siem|ens AG,(|
|000000d0| 48 6f 66 6d 61 6e 6e 73 | 74 72 29 20 20 4d 75 6e |Hofmanns|tr) Mun|
|000000e0| 69 63 68 2d 47 65 72 6d | 61 6e 79 2d 45 75 72 6f |ich-Germ|any-Euro|
|000000f0| 70 65 2e 0a 4d 65 73 73 | 61 67 65 2d 49 44 3a 20 |pe..Mess|age-ID: |
|00000100| 3c 34 69 6f 6c 34 71 24 | 63 37 6d 40 6d 6f 6f 64 |<4iol4q$|c7m@mood|
|00000110| 79 2e 6d 63 68 68 2e 73 | 69 65 6d 65 6e 73 2e 64 |y.mchh.s|iemens.d|
|00000120| 65 3e 0a 52 65 66 65 72 | 65 6e 63 65 73 3a 20 3c |e>.Refer|ences: <|
|00000130| 34 69 6d 66 36 6a 24 70 | 74 6f 40 74 68 72 75 73 |4imf6j$p|to@thrus|
|00000140| 68 2e 73 6f 76 65 72 2e | 6e 65 74 3e 0a 4e 4e 54 |h.sover.|net>.NNT|
|00000150| 50 2d 50 6f 73 74 69 6e | 67 2d 48 6f 73 74 3a 20 |P-Postin|g-Host: |
|00000160| 74 68 65 6d 73 65 2e 6d | 63 68 68 2e 73 69 65 6d |themse.m|chh.siem|
|00000170| 65 6e 73 2e 64 65 0a 4d | 69 6d 65 2d 56 65 72 73 |ens.de.M|ime-Vers|
|00000180| 69 6f 6e 3a 20 31 2e 30 | 0a 43 6f 6e 74 65 6e 74 |ion: 1.0|.Content|
|00000190| 2d 54 79 70 65 3a 20 74 | 65 78 74 2f 70 6c 61 69 |-Type: t|ext/plai|
|000001a0| 6e 3b 20 63 68 61 72 73 | 65 74 3d 75 73 2d 61 73 |n; chars|et=us-as|
|000001b0| 63 69 69 0a 43 6f 6e 74 | 65 6e 74 2d 54 72 61 6e |cii.Cont|ent-Tran|
|000001c0| 73 66 65 72 2d 45 6e 63 | 6f 64 69 6e 67 3a 20 37 |sfer-Enc|oding: 7|
|000001d0| 62 69 74 0a 58 2d 4d 61 | 69 6c 65 72 3a 20 4d 6f |bit.X-Ma|iler: Mo|
|000001e0| 7a 69 6c 6c 61 20 31 2e | 31 4e 20 28 58 31 31 3b |zilla 1.|1N (X11;|
|000001f0| 20 49 3b 20 53 75 6e 4f | 53 20 35 2e 33 20 73 75 | I; SunO|S 5.3 su|
|00000200| 6e 34 6d 29 0a 54 6f 3a | 20 6d 6f 75 6e 74 61 69 |n4m).To:| mountai|
|00000210| 6e 40 6d 61 70 6c 65 2e | 73 6f 76 65 72 2e 6e 65 |n@maple.|sover.ne|
|00000220| 74 0a 58 2d 55 52 4c 3a | 20 6e 65 77 73 3a 34 69 |t.X-URL:| news:4i|
|00000230| 6d 66 36 6a 24 70 74 6f | 40 74 68 72 75 73 68 2e |mf6j$pto|@thrush.|
|00000240| 73 6f 76 65 72 2e 6e 65 | 74 0a 0a 6d 6f 75 6e 74 |sover.ne|t..mount|
|00000250| 61 69 6e 40 6d 61 70 6c | 65 2e 73 6f 76 65 72 2e |ain@mapl|e.sover.|
|00000260| 6e 65 74 20 28 53 74 65 | 76 65 20 4d 6f 75 6e 74 |net (Ste|ve Mount|
|00000270| 29 20 77 72 6f 74 65 3a | 0a 3e 48 69 20 61 6c 6c |) wrote:|.>Hi all|
|00000280| 2e 20 20 49 27 6d 20 6e | 6f 20 6e 65 77 62 69 65 |. I'm n|o newbie|
|00000290| 20 74 6f 20 43 2c 20 62 | 75 74 20 49 27 76 65 20 | to C, b|ut I've |
|000002a0| 61 6c 77 61 79 73 20 62 | 65 65 6e 20 61 20 6c 69 |always b|een a li|
|000002b0| 74 74 6c 65 20 6c 65 65 | 72 79 20 61 62 6f 75 74 |ttle lee|ry about|
|000002c0| 0a 3e 70 6f 69 6e 74 65 | 72 20 61 72 69 74 68 6d |.>pointe|r arithm|
|000002d0| 65 74 69 63 2e 20 20 49 | 20 6e 65 65 64 20 74 6f |etic. I| need to|
|000002e0| 20 77 72 69 74 65 20 61 | 20 66 75 6e 63 74 69 6f | write a| functio|
|000002f0| 6e 20 74 6f 20 63 6f 6e | 76 65 72 74 20 61 20 62 |n to con|vert a b|
|00000300| 75 66 66 65 72 20 74 6f | 0a 3e 61 6c 6c 20 6c 6f |uffer to|.>all lo|
|00000310| 77 65 72 20 63 61 73 65 | 20 28 61 6e 64 20 61 6e |wer case| (and an|
|00000320| 6f 68 74 65 72 20 66 6f | 72 20 75 70 70 65 72 29 |ohter fo|r upper)|
|00000330| 2e 20 20 42 65 6c 6f 77 | 20 70 6c 65 61 73 65 20 |. Below| please |
|00000340| 73 65 65 20 6d 79 20 63 | 6f 64 65 2e 0a 3e 41 6e |see my c|ode..>An|
|00000350| 79 20 63 6f 6d 6d 65 6e | 74 73 3f 20 20 49 27 6d |y commen|ts? I'm|
|00000360| 20 63 6f 6e 63 65 72 6e | 65 64 20 6d 79 20 74 79 | concern|ed my ty|
|00000370| 70 65 63 61 73 74 73 20 | 6d 69 67 68 74 20 62 72 |pecasts |might br|
|00000380| 65 61 6b 20 74 68 65 20 | 63 6f 64 65 20 66 6f 72 |eak the |code for|
|00000390| 20 73 6f 6d 65 0a 3e 64 | 61 74 61 2c 20 62 75 74 | some.>d|ata, but|
|000003a0| 20 49 27 6d 20 6e 6f 74 | 20 70 6f 73 69 74 69 76 | I'm not| positiv|
|000003b0| 65 2e 20 20 54 68 61 6e | 6b 73 20 69 6e 20 61 64 |e. Than|ks in ad|
|000003c0| 76 61 6e 63 65 3a 0a 3e | 0a 3e 76 6f 69 64 20 2a |vance:.>|.>void *|
|000003d0| 6d 65 6d 6c 77 72 28 76 | 6f 69 64 20 2a 62 75 66 |memlwr(v|oid *buf|
|000003e0| 2c 20 69 6e 74 20 6c 65 | 6e 29 0a 3e 7b 0a 3e 63 |, int le|n).>{.>c|
|000003f0| 68 61 72 20 2a 65 6e 64 | 3d 28 63 68 61 72 20 2a |har *end|=(char *|
|00000400| 29 62 75 66 2b 6c 65 6e | 3b 0a 3e 63 68 61 72 20 |)buf+len|;.>char |
|00000410| 2a 73 3b 0a 3e 66 6f 72 | 20 28 73 3d 28 63 68 61 |*s;.>for| (s=(cha|
|00000420| 72 20 2a 29 62 75 66 20 | 3b 20 73 3c 65 6e 64 3b |r *)buf |; s<end;|
|00000430| 20 73 2b 2b 29 20 2a 73 | 20 3d 20 74 6f 6c 6f 77 | s++) *s| = tolow|
|00000440| 65 72 28 2a 73 29 3b 0a | 3e 72 65 74 75 72 6e 28 |er(*s);.|>return(|
|00000450| 62 75 66 29 3b 0a 3e 7d | 0a 54 68 65 20 63 61 73 |buf);.>}|.The cas|
|00000460| 74 73 20 61 72 65 20 6f | 2e 6b 2e 0a 0a |ts are o|.k... |
+--------+-------------------------+-------------------------+--------+--------+